﻿@using Common;
@using Web.helper;
@using (Ajax.BeginForm("", "", new { }, new AjaxOptions() { HttpMethod = "Post", OnSuccess = "tips(data)", OnBegin = "ValidateLog" }, new { enctype = "multipart/form-data" }))
{
    <div class="modal fade bs-example-modal-sm" id="myModal" role="dialog" aria-labelledby="myModalLabel" style="z-index:1000">
        <div class="modal-dialog" role="document">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                    <h4 class="modal-title" id="myModalLabel">新增</h4>
                </div>
                <div class="modal-body">
                    <input type="hidden" name="id" class="form-control" id="id">
                    <div class="tab-pane fade in active" id="home">


                        <div class="panel panel-info">
                            <div class="panel-heading">
                                <h3 class="panel-title">课程信息</h3>
                            </div>
                            <div class="panel-body">
                                <div class="col-sm-12">
                                    <label for="txt_departmentname">课程名称</label>
                                    <input type="text" name="txt_lessonname" class="form-control" id="txt_lessonname" placeholder="课程名称(必填)" maxlength="20" required>
                                </div>
                                <div class="col-sm-12">
                                    <label for="txt_departmentname">系列</label>
                                    @Html.Raw(Html.select_lessonList())
                                </div>
                                <div class="col-sm-12">
                                    <label for="txt_departmentname">类目</label>
                                    @Html.Raw(Html.select_lessonType2())
                                </div>
                                <div class="col-sm-12">
                                    <label for="txt_departmentname">老师</label>
                                    @Html.Raw(Html.select_Teacher())
                                </div>
                                <div class="col-sm-12">
                                    <div class="form-group">
                                        <label for="txt_parentdepartment">开课时间</label><br />
                                        <input placeholder="开课时间" class="laydate-icon form-control layer-date" id="txt_startDate" name="txt_startDate" onclick="laydate({istime: true, format: 'YYYY-MM-DD'})">
                                    </div>
                                </div>
                                <div class="col-sm-12">
                                    <label for="txt_departmentname">视频地址</label>
                                    <input type="text" name="txt_video_path" class="form-control" id="txt_video_path" placeholder="视频地址(必填)" maxlength="200" required>
                                </div>
                                <div class="col-sm-12">
                                    <label for="txt_departmentname">课件下载地址</label>
                                    <input type="text" name="txt_downloadpath" class="form-control" id="txt_downloadpath" placeholder="课件下载地址" maxlength="200">
                                </div>
                                <div class="col-sm-12">
                                    <label for="txt_departmentname">观看权限</label>
                                    @Html.Raw(Html.select_Groups())
                                </div>

                        </div>
                        </div>

                      

                    </div>
                </div>
                <div class="modal-footer">
                    <button class="btn btn-default" data-dismiss="modal"><span class="glyphicon glyphicon-remove" aria-hidden="true"></span>关闭</button>
                    <button class="btn btn-primary block full-width m-b" id="btn_submit" onclick="return onck()"><span class="glyphicon glyphicon-floppy-disk" aria-hidden="true"></span>保存</button>
                </div>
            </div>
        </div>
    </div>
}